package com.itbour.dto.yjx.user;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class ReadPropertiesInfo {
	static {
		Properties properties = new Properties();  
        InputStream input = null;  
        try {  
            input = new FileInputStream("*.properties");//加载Java项目根路径下的配置文件  
            properties.load(input);// 加载属性文件  
            System.out.println("url:" + properties.getProperty("redis.REDIS_ONLINEDB_RECORD"));  
        } catch (IOException io) {  
        } finally {  
            if (input != null) {  
                try {  
                    input.close();  
                } catch (IOException e) {  
                    e.printStackTrace();  
                }  
            }  
        }  
	}
}
